cmake_minimum_required (VERSION 2.6)
project (Popup)

set(POPUP_INSTALL_DIR ${PROJECT_SOURCE_DIR}/../delivery/${POPUP_TARGET}_${CMAKE_BUILD_TYPE})

# 3rd party libraries
add_subdirectory(3rdParty)

# Popup-made libraries
add_subdirectory(PopupLibOSAL)
add_subdirectory(PopupDatabaseSqlite)
add_subdirectory(PopupLibrary)

# QT Client implementation
add_subdirectory(PopupClientQt)

# So far, server has been tested only on Linux
if (${CMAKE_SYSTEM_NAME} STREQUAL Linux)
  add_subdirectory(PopupServer)
endif (${CMAKE_SYSTEM_NAME} STREQUAL Linux)
